import request from '@/utils/request'

// 查询出院记录列表
export function listChuyuan(query) {
  return request({
    url: '/inpatient/list',
    method: 'get',
    params: query
  })
}

// 查询出院记录详细
export function getChuyuan(dischargeRecordId) {
  return request({
    url: '/nurse/chuyuan/' + dischargeRecordId,
    method: 'get'
  })
}

// 新增出院记录
export function addChuyuan(data) {
  return request({
    url: '/nurse/chuyuan',
    method: 'post',
    data: data
  })
}

// 修改出院记录
export function updateChuyuan(data) {
  return request({
    url: '/nurse/chuyuan',
    method: 'put',
    data: data
  })
}

// 删除出院记录
export function delChuyuan(dischargeRecordId) {
  return request({
    url: '/nurse/chuyuan/' + dischargeRecordId,
    method: 'delete'
  })
}
